how to find highest value from an array